﻿using Newtonsoft.Json;
using SqlSugar;
using Zhp.SqlSugar.Entity;

namespace Zhp.Entity.Sys
{

    /// <summary>
    /// 部门表
    /// </summary>
    [SugarTable("Sys_Dept")]
    public class SysDept : BaseEntity<SysDept, long>
    {
        [JsonConverter(typeof(ValueToStringConverter))]
        [SugarColumn(ColumnDataType = "bigint", IsNullable = true, ColumnDescription = "父级ID")]
        public long? ParentId { get; set; }

        /// <summary>
        /// 部门名称
        /// </summary>
        [SugarColumn(Length = 255, IsNullable = false, ColumnDescription = "角色名称")]
        public string DeptName { get; set; }

        /// <summary>
        /// 是否启用
        /// </summary>
        [SugarColumn(IsNullable = true, ColumnDescription = "是否启用")]
        public bool IsEnabled { get; set; }
    }
}
